#!/usr/bin/env python3
# coding:utf-8
import requests
import json
server_url = 'http://0.0.0.0:8090/core/patrol_recorder/'
# server_url = 'http://0.0.0.0:8090/core/alarm/'


def get_result_recoder():
    data = {'id': 1}
    url = server_url + 'get_by_district/'
    headers = {'Content-Type': 'application/json'}
    r = requests.post(url, json=data, headers=headers)
    print(type(r))
    print(r.json())

get_result_recoder()